import { PTOData } from '../types/pto';

const year = new Date().getFullYear();
const today = new Date();

// We only want to show sick days that are in the past
const filterPastDates = (dates: string[]): string[] => {
  return dates.filter((date) => new Date(date) <= today);
};

export const samplePTOData: PTOData = {
  'Faustino Shields': {
    ptoDates: [
      `${year}-01-15`,
      `${year}-01-16`,
      `${year}-01-17`,
      `${year}-03-10`,
      `${year}-03-11`,
      `${year}-05-12`,
      `${year}-05-13`,
      `${year}-05-14`,
      `${year}-07-21`,
      `${year}-07-22`,
      `${year}-07-23`,
      `${year}-07-24`,
      `${year}-09-05`,
      `${year}-09-06`,
      `${year}-11-20`,
      `${year}-11-21`,
      `${year}-11-22`,
    ],
    sickDates: filterPastDates([
      `${year}-02-03`,
      `${year}-02-04`,
      `${year}-06-15`,
      `${year}-06-16`,
      `${year}-10-12`,
      `${year}-12-15`,
    ]),
    nationality: 'US',
    team: 'Engineering',
    birthday: '05-15',
    avatar: 'm_1',
  },
  'Pat Schneider': {
    ptoDates: [
      `${year}-02-05`,
      `${year}-02-06`,
      `${year}-05-02`,
      `${year}-06-15`,
      `${year}-06-16`,
      `${year}-06-17`,
      `${year}-08-25`,
      `${year}-08-26`,
      `${year}-10-10`,
      `${year}-10-11`,
      `${year}-10-12`,
      `${year}-12-20`,
      `${year}-12-21`,
      `${year}-12-22`,
    ],
    sickDates: filterPastDates([`${year}-03-18`, `${year}-07-05`, `${year}-11-30`]),
    nationality: 'DE',
    team: 'Engineering',
    birthday: '09-15',
    avatar: '',
  },
  'Aliya Schinner': {
    ptoDates: [
      `${year}-01-20`,
      `${year}-01-21`,
      `${year}-01-22`,
      `${year}-04-10`,
      `${year}-04-11`,
      `${year}-05-20`,
      `${year}-05-21`,
      `${year}-05-22`,
      `${year}-07-15`,
      `${year}-07-16`,
      `${year}-09-25`,
      `${year}-09-26`,
      `${year}-09-27`,
      `${year}-12-05`,
      `${year}-12-06`,
    ],
    sickDates: filterPastDates([`${year}-02-14`, `${year}-06-22`, `${year}-10-08`]),
    nationality: 'UK',
    team: 'Product',
    birthday: '01-20',
    avatar: 'f_1',
  },
  'Daan Aarden': {
    ptoDates: [
      `${year}-02-15`,
      `${year}-02-16`,
      `${year}-04-25`,
      `${year}-04-26`,
      `${year}-06-10`,
      `${year}-06-11`,
      `${year}-06-12`,
      `${year}-08-05`,
      `${year}-08-06`,
      `${year}-10-20`,
      `${year}-10-21`,
      `${year}-12-15`,
      `${year}-12-16`,
      `${year}-12-17`,
    ],
    sickDates: filterPastDates([`${year}-01-10`, `${year}-05-18`, `${year}-09-30`]),
    nationality: 'NL',
    team: 'Design',
    birthday: '03-25',
    avatar: 'm_2',
  },
  'Marie Renault': {
    ptoDates: [
      `${year}-01-10`,
      `${year}-01-11`,
      `${year}-03-20`,
      `${year}-03-21`,
      `${year}-03-22`,
      `${year}-05-19`,
      `${year}-07-25`,
      `${year}-07-26`,
      `${year}-09-15`,
      `${year}-09-16`,
      `${year}-11-25`,
      `${year}-11-26`,
      `${year}-11-27`,
    ],
    sickDates: filterPastDates([`${year}-02-28`, `${year}-06-05`, `${year}-10-15`]),
    nationality: 'FR',
    team: 'Design',
    birthday: '02-18',
    avatar: 'f_2',
  },
  'Loraine Stracke': {
    ptoDates: [
      `${year}-02-10`,
      `${year}-02-11`,
      `${year}-02-12`,
      `${year}-04-15`,
      `${year}-04-16`,
      `${year}-05-26`,
      `${year}-05-27`,
      `${year}-05-28`,
      `${year}-05-29`,
      `${year}-07-10`,
      `${year}-07-11`,
      `${year}-09-20`,
      `${year}-09-21`,
      `${year}-11-10`,
      `${year}-11-11`,
      `${year}-11-12`,
    ],
    sickDates: filterPastDates([
      `${year}-01-25`,
      `${year}-05-02`,
      `${year}-08-18`,
      `${year}-12-05`,
    ]),
    nationality: 'US',
    team: 'People',
    birthday: '07-28',
    avatar: 'f_3',
  },
  'Luis Lopez': {
    ptoDates: [
      `${year}-01-05`,
      `${year}-01-06`,
      `${year}-03-15`,
      `${year}-03-16`,
      `${year}-05-25`,
      `${year}-05-26`,
      `${year}-07-20`,
      `${year}-07-21`,
      `${year}-07-22`,
      `${year}-09-10`,
      `${year}-09-11`,
      `${year}-11-15`,
      `${year}-11-16`,
      `${year}-11-17`,
    ],
    sickDates: filterPastDates([`${year}-02-20`, `${year}-06-08`, `${year}-10-25`]),
    nationality: 'MX',
    team: 'Engineering',
    birthday: '07-28',
    avatar: '',
  },
  'Amy Kovacek': {
    ptoDates: [
      `${year}-01-15`,
      `${year}-01-16`,
      `${year}-01-17`,
      `${year}-03-25`,
      `${year}-03-26`,
      `${year}-04-25`,
      `${year}-04-26`,
      `${year}-04-27`,
      `${year}-04-28`,
      `${year}-04-29`,
      `${year}-04-30`,
      `${year}-05-01`,
      `${year}-05-02`,
      `${year}-06-20`,
      `${year}-06-21`,
      `${year}-08-15`,
      `${year}-08-16`,
      `${year}-08-17`,
      `${year}-10-05`,
      `${year}-10-06`,
      `${year}-12-20`,
      `${year}-12-21`,
      `${year}-12-22`,
    ],
    sickDates: filterPastDates([
      `${year}-02-05`,
      `${year}-07-01`,
      `${year}-09-28`,
      `${year}-11-30`,
    ]),
    nationality: 'UK',
    team: 'Engineering',
    birthday: '12-26',
    avatar: '',
  },
  'Giulio Rossi': {
    ptoDates: [
      `${year}-02-20`,
      `${year}-02-21`,
      `${year}-04-05`,
      `${year}-04-06`,
      `${year}-04-07`,
      `${year}-05-25`,
      `${year}-05-26`,
      `${year}-05-27`,
      `${year}-05-28`,
      `${year}-05-29`,
      `${year}-05-30`,
      `${year}-05-31`,
      `${year}-07-15`,
      `${year}-07-16`,
      `${year}-09-25`,
      `${year}-09-26`,
      `${year}-11-10`,
      `${year}-11-11`,
      `${year}-11-12`,
    ],
    sickDates: filterPastDates([
      `${year}-01-18`,
      `${year}-06-12`,
      `${year}-08-28`,
      `${year}-12-15`,
    ]),
    nationality: 'BR',
    team: 'Operations',
    birthday: '06-27',
    avatar: 'm_3',
  },
  'Renee Smith': {
    ptoDates: [
      `${year}-01-08`,
      `${year}-01-09`,
      `${year}-01-10`,
      `${year}-03-18`,
      `${year}-03-19`,
      `${year}-05-28`,
      `${year}-05-29`,
      `${year}-07-22`,
      `${year}-07-23`,
      `${year}-07-24`,
      `${year}-09-12`,
      `${year}-09-13`,
      `${year}-11-18`,
      `${year}-11-19`,
      `${year}-11-20`,
    ],
    sickDates: filterPastDates([`${year}-02-05`, `${year}-06-15`, `${year}-10-25`]),
    nationality: 'US',
    team: 'Marketing',
    birthday: '01-15',
    avatar: 'f_4',
  },
  'Victor Tavares': {
    ptoDates: [
      `${year}-01-22`,
      `${year}-01-23`,
      `${year}-01-24`,
      `${year}-03-28`,
      `${year}-03-29`,
      `${year}-05-08`,
      `${year}-05-09`,
      `${year}-05-10`,
      `${year}-05-11`,
      `${year}-07-25`,
      `${year}-07-26`,
      `${year}-07-27`,
      `${year}-09-14`,
      `${year}-09-15`,
      `${year}-11-25`,
      `${year}-11-26`,
      `${year}-11-27`,
    ],
    sickDates: filterPastDates([
      `${year}-03-08`,
      `${year}-04-19`,
      `${year}-08-22`,
      `${year}-12-03`,
    ]),
    nationality: 'AU',
    team: 'Product',
    birthday: '01-15',
    avatar: '',
  },
  'Julio Hernandez': {
    ptoDates: [
      `${year}-01-25`,
      `${year}-01-26`,
      `${year}-01-27`,
      `${year}-03-22`,
      `${year}-03-23`,
      `${year}-07-18`,
      `${year}-07-19`,
      `${year}-07-20`,
      `${year}-09-16`,
      `${year}-09-17`,
      `${year}-11-22`,
      `${year}-11-23`,
      `${year}-11-24`,
    ],
    sickDates: filterPastDates([`${year}-02-12`, `${year}-05-23`, `${year}-09-17`]),
    nationality: 'ES',
    team: 'Engineering',
    birthday: '01-15',
    avatar: 'm_5',
  },
  'Mia Johnson': {
    ptoDates: [
      `${year}-01-18`,
      `${year}-01-19`,
      `${year}-01-20`,
      `${year}-03-26`,
      `${year}-03-27`,
      `${year}-07-23`,
      `${year}-07-24`,
      `${year}-07-25`,
      `${year}-09-18`,
      `${year}-09-19`,
      `${year}-11-28`,
      `${year}-11-29`,
      `${year}-11-30`,
    ],
    sickDates: filterPastDates([
      `${year}-01-08`,
      `${year}-04-11`,
      `${year}-08-05`,
      `${year}-12-19`,
    ]),
    nationality: 'US',
    team: 'People',
    birthday: '01-15',
    avatar: 'f_5',
  },
  'Cillian McGrath': {
    ptoDates: [
      `${year}-01-12`,
      `${year}-01-13`,
      `${year}-01-14`,
      `${year}-03-24`,
      `${year}-03-25`,
      `${year}-05-15`,
      `${year}-07-17`,
      `${year}-07-18`,
      `${year}-07-19`,
      `${year}-09-22`,
      `${year}-09-23`,
      `${year}-11-26`,
      `${year}-11-27`,
      `${year}-11-28`,
    ],
    sickDates: filterPastDates([`${year}-02-19`, `${year}-06-07`, `${year}-10-14`]),
    nationality: 'IE',
    team: 'Engineering',
    birthday: '01-15',
    avatar: 'm_4',
  },
};
